<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>默认主页</title>
</head>
<body>
	<%
		// 项目路径
		String path = request.getContextPath();
		// 项目的基本路径：类似于：http://localhost:8092/servlet1211/
		String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
				+ path + "/";
		// 将路径值进行缓存
		session.setAttribute("basePath", basePath);
		// 重定向到登录页面
		response.sendRedirect("login.jsp");
		//out.println("basePath:"+basePath);
	%>
</body>
</html>